﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using CleverDD.Bll;
using CleverDD.Bll.Enum;
using CleverDD.Helper;
using CleverDD.Model.Communication.PLC;
using CleverDD.Model.UserManage;
using HslCommunication;

namespace FrameWorkDemo
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        #region 变量定义

        CommonTool _commonTool = new CommonTool();
        bool _threadFlag = true;



        #endregion

        #region 初始化


        private void MainForm_Load(object sender, EventArgs e)
        {
            _commonTool.SafeLoad();
        }

        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            _threadFlag = false;

        }

        #endregion

        private void AdminBtn_Click(object sender, EventArgs e)
        {
            AdminForm form = new AdminForm();
            form.ShowDialog();
        }

      
    }
}
